/**
 * 
 */
package com.ffcs.crmd.tsp.server.jdbc.service;

import java.sql.Connection;
import java.util.List;

import com.ffcs.crmd.tsp.common.exception.TspException;
import com.ffcs.crmd.tsp.server.jdbc.SqlConstants;
import com.ffcs.crmd.tsp.server.jdbc.entity.SliceGroup;

/**
 * 功能说明:
 *
 * @author FFCS-ZHONGFUHUA
 * 
 * @since 
 *
 */
public interface ISliceGroupService extends SqlConstants {

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException 
     */
    SliceGroup get(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException 
     */
    int querySize(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException 
     */
    List<SliceGroup> query(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException 
     */
    List<SliceGroup> queryPage(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException
     */
    boolean add(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException
     */
    boolean delete(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param sliceGroup
     * @return
     * @throws TspException 
     */
    boolean update(Connection conn, SliceGroup sliceGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param sliceService
     */
    void setSliceService(ISliceService sliceService);

    
}
